n = eval(input())
s = 0
flag = 1
for i in range(1,n+1):
    item = flag/(2*i-1)
    s+=item
    flag= - flag
print(4*s)
